//
//  MJ_ReportHeadView.h
//  UEAssistant
//
//  Created by mac on 2018/1/8.
//  Copyright © 2018年 youyixinxi. All rights reserved.
//

#import <UIKit/UIKit.h>


typedef enum : NSUInteger {
    MJTimeSelectTypeStart,//开始时间
    MJTimeSelectTypeEnd,//结束时间
    MJTimeSelectTypeToday,//今天
    MJTimeSelectTypeYesterday,//昨天
    MJTimeSelectTypeTheDayBeforeYesterday,//前天
    MJTimeSelectTypeWeek,//本周
    MJTimeSelectTypeMonth,//本月
} MJTimeSelectType;

@class MJ_ReportHeadView;
@protocol MJ_ReportHeadViewDelegate <NSObject>

- (void)clickWithType:(MJTimeSelectType)type button:(UIButton *)button view:(MJ_ReportHeadView *)view;

@end
@interface MJ_ReportHeadView : UIView

@property (strong, nonatomic)id <MJ_ReportHeadViewDelegate>delegate;

- (void)changeButtonTitleWithBeginDate:(NSDate *)begin endDate:(NSDate *)end;

@property (assign, nonatomic)BOOL isSelectRange;
@end
